<template>
  <div class="article-list">
    <el-card v-for="i in 5" :key="i" class="article-item">
      <h2 class="article-title">示例文章标题 {{ i }}</h2>
      <div class="article-meta">
        <span>作者: Admin</span>
        <span>发布时间: 2024-01-01</span>
        <span>阅读数: 100</span>
      </div>
      <p class="article-summary">
        这是一段示例文章摘要，描述了文章的主要内容...
      </p>
      <div class="article-footer">
        <el-button type="primary" size="small" @click="$router.push(`/article/${i}`)">
          阅读全文
        </el-button>
      </div>
    </el-card>
  </div>
</template>

<style scoped>
.article-list {
  padding: 20px;
}

.article-item {
  margin-bottom: 20px;
}

.article-title {
  margin: 0 0 15px 0;
  font-size: 20px;
}

.article-meta {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.article-meta span {
  margin-right: 20px;
}

.article-summary {
  margin-bottom: 15px;
  color: #333;
}

.article-footer {
  display: flex;
  justify-content: flex-end;
}
</style> 